package com.hxzy.mapper;

import com.hxzy.controller.mobile.cart.resp.MobileCartResp;
import com.hxzy.entity.ShoppingCart;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author admin
* @description 针对表【shopping_cart(购物车)】的数据库操作Mapper
* @createDate 2024-02-21 11:30:41
* @Entity com.hxzy.entity.ShoppingCart
*/
public interface ShoppingCartMapper extends BaseMapper<ShoppingCart> {

    /**
     * 用户某个商家的购物车信息
     * @param merchantId 商家id
     * @param currentId 用户id
     * @return
     */
    List<MobileCartResp> cartList(@Param(value = "merchantId") Long merchantId, @Param(value = "currentId") long currentId);
}




